//
//  SyncManager.h
//  i18n
//
//  Created by Earus on 11/29/11.
//  Copyright (c) 2011 patrick.decaluwe@student.uclouvain.be. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DataLoader.h"
#import "HttpManager.h"

@interface SyncManager : NSObject <DataLoaderDelegate, NSXMLParserDelegate, HttpManagerDelegate>
{
	NSString *downloadURL;
@private
    DataLoader *loader;
    NSMutableArray *xmlParseData;
	HttpManager *httpManager;
	NSMutableData *receivedData;    
	NSInteger totalsize;
    BOOL isDownloadMode;
}

@property (nonatomic, assign) UIView *uiView;

-(id)initWithUIView:(UIView*)uiView;
-(void)sync;
-(void)getXMLFrom:(NSString*)url;

@end
